Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

som: handle pruned transactions for slower updating feeds #857

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

aalu1418
Copy link
Collaborator

@aalu1418 aalu1418 commented Sep 13, 2024

Description

some solana RPC nodes will prune old transactions. if there are feeds that update slowly, transactions may be pruned from the rpc node and SOM would be unable to find a previous tx and throw an error.

that error blocks the data packed in the envelope to be used as an update. if this occurs during startup, it would cause price data to be missing until SOM sees a transaction.

this PR adds a cached value in the case that transactions are pruned. on startup with pruned transactions, it would return 0 rather than block the entire metrics update

@aalu1418 aalu1418 changed the title som: handle pruned transactions for non-rapidly updating feeds som: handle pruned transactions for slower updating feeds Sep 13, 2024
jmank88
jmank88 previously approved these changes Sep 16, 2024
@aalu1418 aalu1418 merged commit edd33df into develop Sep 16, 2024
33 checks passed
@aalu1418 aalu1418 deleted the som/handle-pruned-txs branch September 16, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants